{#**
 * 2007-2020 PrestaShop SA and Contributors
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * https://opensource.org/licenses/OSL-3.0
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to https://www.prestashop.com for more information.
 *
 * @author    PrestaShop SA <contact@prestashop.com>
 * @copyright 2007-2020 PrestaShop SA and Contributors
 * @license   https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
 * International Registered Trademark & Property of PrestaShop SA
 *#}
<div class="row" id="bulk-combinations-container-fields">
  {% if 'PS_STOCK_MANAGEMENT'|configuration %}
    <div class="col-lg-4 col-md-3 col-sm-6">
      <label class="form-control-label">{{ form.quantity.vars.label }}</label>
      {{ form_errors(form.quantity) }}
      {{ form_widget(form.quantity) }}
    </div>
  {% endif %}

  <div class="col-lg-4 col-md-3 col-sm-6">
    <label class="form-control-label">{{ form.cost_price.vars.label }}</label>
    {{ form_errors(form.cost_price) }}
    {{ form_widget(form.cost_price) }}
  </div>

  <div class="col-lg-4 col-md-3 col-sm-6">
    <label class="form-control-label">{{ form.impact_on_weight.vars.label }}</label>
    {{ form_errors(form.impact_on_weight) }}
    {{ form_widget(form.impact_on_weight) }}
  </div>

  <div class="col-lg-4 col-md-3 col-sm-6">
    <label class="form-control-label">{{ form.impact_on_price_te.vars.label }}</label>
    {{ form_errors(form.impact_on_price_te) }}
    {{ form_widget(form.impact_on_price_te) }}
  </div>

  <div class="col-lg-4 col-md-3 col-sm-6">
    <label class="form-control-label">{{ form.impact_on_price_ti.vars.label }}</label>
    {{ form_errors(form.impact_on_price_ti) }}
    {{ form_widget(form.impact_on_price_ti) }}
  </div>

  <div class="col-lg-4 col-md-3 col-sm-6">
    <label class="form-control-label">{{ form.date_availability.vars.label }}</label>
    {{ form_errors(form.date_availability) }}
    {{ form_widget(form.date_availability) }}
  </div>

  <div class="col-lg-4 col-md-3 col-sm-6">
    <label class="form-control-label">{{ form.reference.vars.label }}</label>
    {{ form_errors(form.reference) }}
    {{ form_widget(form.reference) }}
  </div>

  <div class="col-lg-4 col-md-3 col-sm-6">
    <label class="form-control-label">{{ form.minimal_quantity.vars.label }}</label>
    {{ form_errors(form.minimal_quantity) }}
    {{ form_widget(form.minimal_quantity) }}
  </div>

  <div class="col-lg-4 col-md-3 col-sm-6">
    <label class="form-control-label">{{ form.low_stock_threshold.vars.label }}
      <span class="help-box" data-toggle="popover" data-content="{{ 'You can increase or decrease low stock levels in bulk. You cannot disable them in bulk: you have to do it on a per-combination basis.'|trans({}, 'Admin.Catalog.Feature') }}" ></span>
    </label>
    {{ form_errors(form.low_stock_threshold) }}
    {{ form_widget(form.low_stock_threshold) }}
  </div>

  <div class="col-lg-4 col-md-3 col-sm-6 widget-checkbox-inline">
    <div class="widget-checkbox-inline">
      {{ form_errors(form.low_stock_alert) }}
      {{ form_widget(form.low_stock_alert) }}
      <span class="help-box" data-toggle="popover" data-content="{{ 'The email will be sent to all the users who have the right to run the stock page. To modify the permissions, go to Advanced Parameters > Team'|trans({}, 'Admin.Catalog.Feature') }}" ></span>
    </div>
  </div>
</div>
<div class="row justify-content-end mt-3">
    <button id="delete-combinations" class="btn btn-outline-secondary mr-3" data="{{ path('admin_delete_attribute', {'idProduct': id_product}) }}">
      <i class="material-icons">delete</i>
      {{ 'Delete combinations'|trans({}, 'Admin.Catalog.Feature') }}
    </button>
    <button id="apply-on-combinations" class="btn btn-outline-primary mr-3">
      {{ 'Apply'|trans({}, 'Admin.Actions') }}
    </button>
  {{ form_widget(form) }}
</div>
